package gof.factory;

/**
 * TODO
 * 2020-11-05 16:50
 */
public class NYStylePizzaStore extends PizzaStore {
    @Override
    public Pizza createPizza(String type) {
        if (type == "NYStyle"){
            return new NYStyleCheesePizza();
        }else {
            return new ChicagoStyleCheesePizza(); //应该返回NYStyle的其他菜品
        }

    }
}
